/*

WinClip

   Copyright (C) 2011, Gowtham (gowthamgowtham@gmail.com)

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

*/

#ifndef SAVEDITEMSDIALOG_H
#define SAVEDITEMSDIALOG_H

#include <QDialog>
#include <QDebug>
#include "inputdialog.h"


namespace Ui {
    class SavedItemsDialog;
}

class SavedItemsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SavedItemsDialog(QWidget *parent = 0);
    ~SavedItemsDialog();
    //void setDialogRef(Ui::Dialog *dialogUi);
    void prepare(const QStringList *list);
    QStringList getSavedItems();

public slots:
    void cmdAddClicked();
    void cmdRemoveClicked();
    void cmdEditClicked();
    void cmdMoveUpClicked();
    void cmdMoveDownClicked();

private:
    Ui::SavedItemsDialog *ui;
    InputDialog *inputDialog;
    //Ui::Dialog *dialogUi;
    void swapItem(int updown);
};

#endif // SAVEDITEMSDIALOG_H
